package sorter;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

import java.rmi.*;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

public class SortServer {

	public SortServer() {

	}

	public static void main(String[] args) throws IOException {
		Registry registry = LocateRegistry.createRegistry(1100);
		try {
			SortFactory mySortFactory = new SortFactory();
			registry.bind("mysortfactory", mySortFactory);
		} catch (IOException e) {
			e.getMessage();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
